package com.chen.wow.day03.yunxingshiqiuzhi;

import org.springframework.beans.factory.annotation.Value;

public class Girl {
	private String name;
	
	private Integer age;
	
	private String mobile;
	
	private String email;
	
	public Girl(){
		
	}
	
	public Girl(String name,Integer age,String mobile){
		this.name = name;
		this.age = age;
		this.mobile = mobile;
	}
	
	public Girl(@Value("${girl2.email}") String name,
			@Value("${girl2.age}") Integer age,
			@Value("${girl2.mobile}") String mobile,
			@Value("${girl2.email}") String email){
		this.name = name;
		this.age = age;
		this.mobile = mobile;
		this.email = email;
	}
	
	public void play(){
		System.out.println(this.name + "," + this.age + "," + this.mobile+ "," + this.email);
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	
}
